package com.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 信息中间表
 */

public class Distribution {
    private Integer d_num;

    private Integer c_id;

    private String o_id;
    // @DateTimeFormat (pattern="yyyy-MM-dd'T'HH:mm")
    @DateTimeFormat (pattern="yyyy-MM-dd")
    private Date d_time;

    private Integer d_money;

    private Integer d_state;

    private String d_remarks;
    
    //page
    private String c_name;
    
    public String getC_name() {
        return c_name;
    }
    
    public void setC_name(String c_name) {
        this.c_name = c_name;
    }
    
    public Integer getD_num() {
        return d_num;
    }

    public void setD_num(Integer d_num) {
        this.d_num = d_num;
    }

    public Integer getC_id() {
        return c_id;
    }

    public void setC_id(Integer c_id) {
        this.c_id = c_id;
    }

    public String getO_id() {
        return o_id;
    }

    public void setO_id(String o_id) {
        this.o_id = o_id == null ? null : o_id.trim();
    }
    
    // @JsonFormat (pattern="yyyy-MM-dd'T'HH:mm",timezone="GMT-8")
    @JsonFormat (pattern="yyyy-MM-dd",timezone="GMT-8")
    public Date getD_time() {
        return d_time;
    }

    public void setD_time(Date d_time) {
        this.d_time = d_time;
    }

    public Integer getD_money() {
        return d_money;
    }

    public void setD_money(Integer d_money) {
        this.d_money = d_money;
    }

    public Integer getD_state() {
        return d_state;
    }

    public void setD_state(Integer d_state) {
        this.d_state = d_state;
    }

    public String getD_remarks() {
        return d_remarks;
    }

    public void setD_remarks(String d_remarks) {
        this.d_remarks = d_remarks == null ? null : d_remarks.trim();
    }
    
    @Override
    public String toString() {
        return "Distribution{" +
                "d_num=" + d_num +
                ", c_id=" + c_id +
                ", o_id='" + o_id + '\'' +
                ", d_time=" + d_time +
                ", d_money=" + d_money +
                ", d_state=" + d_state +
                ", d_remarks='" + d_remarks + '\'' +
                '}';
    }
}